<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:79:"/data/wwwroot/default/tp5/public/../application/mobile/view/pdetail/detail.html";i:1539612543;}*/ ?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="stylesheet" href="/static/mobile/css/amazeui.min.css">
    <link rel="stylesheet" href="/static/mobile/css/wap.css">
    <link rel="stylesheet" href="/static/mobile/css/pdetail/detail.css">
    <script type="text/javascript" src="/static/admin/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
    <title>内容页</title>
</head>
<body style="background:#ececec">
    <div class="pet_mian" >

        <!--导航栏-->
        <div class="pet_head">
            <!--顶部导航栏-->
            <header data-am-widget="header" class="am-header am-header-default pet_head_block" id="head">
                <div class="am-header-left am-header-nav ">
                    <a href="javascript:history.back();" class="iconfont pet_head_jt_ico">&#xe601;</a>
                </div>
                <h1 class="am-header-title pet_article_user">
                    <div class="pet_article_user_info_tab">
                        <div class="pet_article_user_info_tab_font">
                            <div class="pet_article_user_info_tab_font_triangle"></div>
                            <div class="pet_article_user_info_tab_font_center"><i>问题</i><span><?php echo $problemNum; ?>篇</span></div>
                        </div>
                    </div>
                    <?php if(empty($userInf['zz_icon'])): ?>
                    <span class="pet_article_user_ico"><img src="/static/mobile/img/a1.png" alt="" class=""></span>
                    <?php else: ?>
                    <span class="pet_article_user_ico"><img src="/static/index/uploads/<?php echo $userInf['zz_icon']; ?>" alt="" class=""></span>
                    <?php endif; ?>
                    <span class="pet_article_user_name"><?php echo $userInf['zz_name']; ?></span>
                </h1>
            </header>
        </div>

        <!--问题栏-->
        <div class="pet_content">
            <!--问题内容栏-->
            <div class="pet_content_block">
                <article data-am-widget="paragraph" class="am-paragraph am-paragraph-default pet_content_article" data-am-paragraph="{ tableScrollable: true, pureview: true }">
                    <h1 class="pet_article_title"><?php echo $userInf['zz_problem_tit']; ?></h1>
                    <div class="pet_article_user_time">发表于：<?php echo $userInf['zz_problem_time']; ?></div>
                    <p class=paragraph-default-p style="padding-bottom: 1em;">
                        <?php echo $userInf['zz_problem_content']; ?>
                    </p>
                </article>
            </div>

            <!--评论栏-->
            <?php if(empty($problemComment)): ?>
            <div class="pet_comment_list" >
                <div class="pet_comment_list_wap" >
                    <div class="" >
                        当前问题下暂无评论
                    </div>
                </div>
            </div>
            <?php else: ?>
            <div class="pet_comment_list">
                <div class="pet_comment_list_wap">
                    <div class="pet_comment_list_title">
                        精彩评论
                    </div>

                    <!--评论部分-->

                    <?php if(is_array($problemComment) || $problemComment instanceof \think\Collection || $problemComment instanceof \think\Paginator): $i = 0; $__LIST__ = $problemComment;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pc): $mod = ($i % 2 );++$i;?>
                    <div data-am-widget="tabs" class="am-tabs am-tabs-default pet_comment_list_tab" >
                        <div class="am-tabs-bd pet_pl_list">
                            <div data-tab-panel-0 class="am-tab-panel am-active">
                                <div class="pet_comment_list_block">
                                    <?php if(empty($pc['zz_icon'])): ?>
                                    <div class="pet_comment_list_block_l">
                                        <img src="/static/mobile/img/a1.png" alt="">
                                    </div>
                                    <?php else: ?>
                                    <div class="pet_comment_list_block_l">
                                        <img src="/static/index/uploads/<?php echo $pc['zz_icon']; ?>" alt="">
                                    </div>
                                    <?php endif; ?>
                                    <div class="pet_comment_list_block_r">
                                        <div class="pet_comment_list_block_r_info">
                                            <?php echo $pc['zz_name']; ?>
                                        </div>
                                        <div class="pet_comment_list_block_r_text">
                                            <?php echo $pc['zz_comment_content']; ?>
                                        </div>
                                        <div class="pet_comment_list_block_r_bottom">
                                            <div class="pet_comment_list_bottom_info_l"><?php echo $pc['zz_comment_time']; ?></div>
                                            <div class="pet_comment_list_bottom_info_r">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>
            <?php endif; ?>


            <!--发表评论-->
            <div class="pet_content_main pet_article_like_delete">
                <div data-am-widget="list_news" class="am-list-news am-list-news-default am-no-layout">
                    <div class="am-list-news-bd">

                        <form class="am-form">
                            <fieldset>
                                <div class="am-form-group">
                                    <label for="doc-ta-1">发布评论</label>
                                    <textarea style="resize: none" class="" rows="5" id="doc-ta-1" name="content"></textarea>
                                </div>
                                <input type="hidden" name="problemId" value="<?php echo $id; ?>">
                                <p>
                                    <button type="submit" class="am-btn am-btn-default submit">
                                        提交
                                    </button>
                                </p>
                            </fieldset>
                        </form>

                    </div>
                </div>
            </div>

            <script>

            </script>


            <!--底部-->
            <div class="pet_article_dowload pet_dowload_more_top_off">
                <div class="pet_article_dowload_title">关于知之</div>
                <div class="pet_article_dowload_content pet_dowload_more_top_bg">
                    <div class="pet_article_dowload_triangle pet_dowload_more_top_san"></div>
                    <div class="pet_article_dowload_ico"><img src="/static/mobile/img/footdon.png" alt=""></div>
                    <div class="pet_article_dowload_content_font">
                        主要基于TP5开发,打造适用于PC端的问答网站,网站主要包括用户模块,问答模块,分类模块,RBAC后台管理模块,用户注册后,可在相对应技术板块提问与回答赚取积分。问答模块中拥有时下热门的收藏关注与悬赏等功能,并设置部分热门悬赏模块,以达到尽快解决问题的作用。
                    </div>
                </div>
                <div class="pet_article_footer_info">Copyright(c)2018 zhizhi All Rights Reserved</div>
            </div>
        </div>

        <div class="pet_article_footer_info">Copyright(c)2018 知之问答</div>
    </div>
    <script src="/static/admin/lib/layui/layui.all.js"></script>
    <script src="/static/mobile/js/jquery.min.js"></script>
    <script src="/static/mobile/js/amazeui.min.js"></script>
    <script src="/static/mobile/js/pdetail/detail.js"></script>


</body>
</html>